<?php

/**
 * SigmaCMS - Content Management System
 *
 * Copyright (C) 2008 Pavol Biely
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    SigmaCMS
 * @author     Pavol Biely <pavolbiely@gmail.com>
 * @copyright  2008 Pavol Biely
 * @license    http://www.gnu.org/licenses/gpl.txt   GNU General Public License
 * @link       http://pabi3.com/
 * @since      0.1.0
 */

if (!defined('INSTALLATION')) die('Access denied!');

echo "<h1>"._SIGMACMS_INSTALL."</h1>\n";
echo "<h2>"._STEP_3."</h2>\n";

echo "<form action='index.php?step=3' method='post'>\n";

echo "<fieldset>\n";
echo "<ol>\n";

echo "<li>\n";
echo "<label for='url'>"._GENERAL_URL."</label>\n";
$url = "http://"._server('HTTP_HOST').dirname(dirname(_server('SCRIPT_NAME')))."/";
echo "<input id='url' name='url' value='$url' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='h1'>"._GENERAL_H1."</label>\n";
echo "<input id='h1' name='h1' value='Content Management System' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='title'>"._GENERAL_TITLE."</label>\n";
echo "<input id='title' name='title' value='ΣCMS - Content Management System' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='description'>"._GENERAL_DESCRIPTION."</label>\n";
echo "<input id='description' name='description' value='"._GENERAL_DESCRIPTION_DEFAULT."' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='keywords'>"._GENERAL_KEYWORDS."</label>\n";
echo "<input id='keywords' name='keywords' value='"._GENERAL_KEYWORDS_DEFAULT."' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='php'>"._GENERAL_PARSEPHP."</label>\n";
echo "<input id='php' name='php' type='checkbox' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_nameprefix'>"._GENERAL_COOKIE_NAMEPREFIX."</label>\n";
echo "<input id='cookie_nameprefix' name='cookie_nameprefix' value='sigma_' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_expiration'>"._GENERAL_COOKIE_EXPIRATION."</label>\n";
echo "<input id='cookie_expiration' name='cookie_expiration' value='3600' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_path'>"._GENERAL_COOKIE_PATH."</label>\n";
echo "<input id='cookie_path' name='cookie_path' value='/' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_domain'>"._GENERAL_COOKIE_DOMAIN."</label>\n";
echo "<input id='cookie_domain' name='cookie_domain' value='' type='text' class='text' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_secure'>"._GENERAL_COOKIE_SECURE."</label>\n";
echo "<input id='cookie_secure' name='cookie_secure' type='checkbox' />\n";
echo "</li>\n";

echo "<li>\n";
echo "<label for='cookie_httponly'>"._GENERAL_COOKIE_HTTPONLY."</label>\n";
echo "<input id='cookie_httponly' name='cookie_httponly' type='checkbox' checked='checked' />\n";
echo "</li>\n";

echo "</ol>\n";
echo "</fieldset>\n";

echo "<fieldset class='submit'>\n";
echo "<input onclick='javascript:history.back()' type='button' value='"._PREVIOUS_STEP."' />\n";
echo "<input name='step3' type='submit' value='"._NEXT_STEP."' />\n";
echo "</fieldset>\n";

echo "</form>\n";
